Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add (and default to on) --preview #6

Merged
merged 4 commits into from
Feb 3, 2025
Merged

Conversation

tbg
Copy link
Collaborator

@tbg tbg commented Jan 14, 2025

demo

With this flag, the benchdiff output is rendered between each
interleaved run of both the old and new benches (within the current
package).

Especially for longer benchmark runs, this is helpful to give an idea
of what the results are likely going to be. In some cases, this may
prompt the user to call it early, thus saving time. But it's also
pleasant to be able to just check in, which is my primary motivation
for this change.

tbg added 2 commits January 14, 2025 13:39
With this flag, the benchdiff output is rendered between each
interleaved run of both the old and new benches (within the current
package).

Especially for longer benchmark runs, this is helpful to give an idea
of what the results are likely going to be. In some cases, this may
prompt the user to call it early, thus saving time. But it's also
pleasant to be able to just check in, which is my primary motivation
for this change.
@tbg tbg changed the title incprgr add (and default to on) --preview Jan 14, 2025
@tbg tbg requested a review from nvanbenschoten January 14, 2025 12:46
Copy link

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

main.go Show resolved Hide resolved
main.go Show resolved Hide resolved
tbg added 2 commits February 3, 2025 14:30
This avoids indenting the first line of the incremental benchmark output:

```
running benchmarks:
 name                                                 old time/op    new time/op    delta
Sysbench/parallel=true/SQL/3node/oltp_read_write-24    1.20ms ± 5%    1.20ms ± 6%   ~     (p=0.863 n=9+9)
```

now becomes

```
running benchmarks:
name                                                  old time/op    new time/op    delta
Sysbench/parallel=true/SQL/3node/oltp_read_write-24    1.20ms ± 5%    1.20ms ± 6%   ~     (p=0.863 n=9+9)
```
It was printing a newline only anyway, but this is cleaner.
@tbg
Copy link
Collaborator Author

tbg commented Feb 3, 2025

Thanks Radu! Addressed the comments.

@tbg tbg merged commit eeadf36 into nvanbenschoten:master Feb 3, 2025
@tbg tbg deleted the incprgr branch February 3, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants